import koaRouter from "koa-router";
import bem from "../controller/backEndManagement";
const bemRouter = new koaRouter({ prefix: "/bem" });
bemRouter.get("/getcode", bem.getCode);
bemRouter.post("/login", bem.login);
bemRouter.post("/register", bem.register);
bemRouter.get("/rgettoken", bem.reGetToken);
bemRouter.get("/isoutdata", bem.isOutData);
bemRouter.get("/routertest", bem.routertest);
bemRouter.get("/getuserlist", bem.getuserlist);
bemRouter.delete("/delusers", bem.delusers);
bemRouter.put("/putuserinfo", bem.putuserinfo);
bemRouter.get("/getuserinfo", bem.getuserinfo);
bemRouter.post("/role/addrolename", bem.addrolename);
bemRouter.delete("/role/delrolename", bem.delrolename);
bemRouter.get("/role/getrolelist", bem.getrolelist);
bemRouter.put("/role/distribute", bem.distribute);
bemRouter.post("/menus/createMenues", bem.createMenues);
bemRouter.get("/menus/getMenues", bem.getMenues);
bemRouter.get("/menus/getMenuesRoutes", bem.getMenuesRoutes);
bemRouter.delete("/menus/delMenues", bem.delMenues);
bemRouter.put("/menus/putMenues", bem.putMenues);
// bemRouter.put("/role/putrolename", bem.putrolename);
export default bemRouter;
